package com.csu.tour.controller;

import com.csu.tour.entity.HotelMarket;
import com.csu.tour.service.StarMarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class StarMarketController {

    @Autowired
    private StarMarketService starMarketService;

    @PostMapping("/starMarkets")
    public void addStarMarket(@RequestBody HotelMarket starMarket) {
        starMarketService.addStarMarket(starMarket);
    }
}
